module.exports = app => {

  const { controller, middleware, router } = app;

  router.get('地址列表', '/user/address/list', middleware.jwt(), controller.address.list);
  router.post('新增地址', '/user/address/insert', middleware.jwt(), controller.address.insert);
  router.post('更新地址', '/user/address/update', middleware.jwt(), controller.address.update);
  router.post('删除地址', '/user/address/delete', middleware.jwt(), controller.address.delete);
};
